.llm-optimization-panel {
  margin-top: 16px;
}

.llm-optimization-panel .ant-card-head {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.llm-optimization-panel .ant-card-head .ant-card-head-title {
  color: white;
}

.llm-optimization-panel .ant-card-extra {
  color: white;
}

.llm-optimization-panel .ant-card-extra .ant-btn {
  color: white;
  border-color: white;
}

.llm-optimization-panel .ant-card-extra .ant-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.optimization-result {
  margin-top: 16px;
}

.optimization-result .ant-collapse {
  border: 1px solid #e8f4fd;
  border-radius: 6px;
}

.optimization-result .ant-collapse-header {
  background: #f0f9ff;
}

.model-config-section {
  background: #fafafa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.usage-stats {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.optimization-loading {
  text-align: center;
  padding: 40px 0;
}

.optimization-loading .ant-spin {
  display: block;
  margin-bottom: 16px;
}

.llm-optimization-panel .ant-progress-line {
  margin-top: 4px;
}

.llm-optimization-panel .ant-select {
  border-radius: 6px;
}

.llm-optimization-panel .ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  height: 40px;
  font-weight: 500;
}

.llm-optimization-panel .ant-btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.optimization-metadata {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.optimization-metadata .metadata-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.optimization-metadata .metadata-item:last-child {
  margin-bottom: 0;
}

.issue-item {
  border-left: 4px solid #e8f4fd;
  padding-left: 12px;
  margin-bottom: 12px;
}

.issue-item.high-severity {
  border-left-color: #ff4d4f;
}

.issue-item.medium-severity {
  border-left-color: #faad14;
}

.issue-item.low-severity {
  border-left-color: #1890ff;
}

.provider-selector {
  margin-bottom: 12px;
}

.model-selector {
  margin-bottom: 16px;
}

.config-item {
  margin-bottom: 16px;
}

.config-item label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.test-connection-btn {
  margin-left: 8px;
}

.usage-progress {
  margin-top: 8px;
}

.optimization-actions {
  text-align: center;
  margin: 20px 0;
}

.optimization-actions .ant-btn {
  margin: 0 8px;
}